﻿@using DXWebApplication.Areas.Administrators.Models
<ul class="root fleft">
    @foreach (PermissionModel item in ViewBag.Permissions)
    {
        <li id="@string.Format("{0}", "per" + item.Id)" class="disable second @if (!item.MultiRow)
                                                                              {
                                                                                  @Html.Raw("single");
                                                                              }">                                
            <a id="@item.Code" ext="@Html.Raw(string.Format("{0}/{1}",item.Id, item.Code))" href="@item.Code" class="no-follow">
                <span @if (!item.HasImage)
                      {
                          @Html.Raw(string.Format("{0}", "style=\"display:none\""));
                      } class="@item.Code">
                    <img alt="" class="@Html.Raw(item.Code + "_img")" src="/Content/themes/admin/images/invis.gif" />
                </span>
                @item.Title
            </a>
        </li>    
    }
</ul>